package logs;

/**
 * Standard messenger design-pattern. Contain information about log entry.
 * 
 * @author Petr Altman
 */
public class LogEntryInfo {
	private String label = null;
	private String message = null;	
	private LogEntryTypes type = null;
		
	/**
	 * Cstor.
	 * @param label Label of the entry.
	 * @param message Message of the entry.
	 * @param type Type of the entry.
	 */
	public LogEntryInfo(String label, String message, LogEntryTypes type) {
		super();
		this.label = label;
		this.message = message;
		this.type = type;
	}

	/**
	 * Returns a label of the entry.
	 * @return Label.
	 */
	public String getLabel() {
		return label;
	}
	
	/**
	 * Sets a label of the entry.
	 * @param label New label.
	 */
	public void setLabel(String label) {
		this.label = label;
	}
	
	/**
	 * Retruns a message of the entry.
	 * @return Message.
	 */
	public String getMessage() {
		return message;
	}
	
	/**
	 * Sets a message of the entry.
	 * @param message New message.
	 */
	public void setMessage(String message) {
		this.message = message;
	}
	
	/**
	 * Returns a type of the entry.
	 * @return Type of the entry.
	 */
	public LogEntryTypes getType() {
		return type;
	}
	
	/**
	 * Sets a type of the entry.
	 * @param type New type of the entry.
	 */
	public void setType(LogEntryTypes type) {
		this.type = type;
	}		
}
